Reads one element from the stream blocks it until the element is read, or the operation aborted, or complete is triggered.
public bool Read(
out T v,
CancellationToken cancellationToken
)
v
Element read.
cancellationToken
Option to cancel and abort the blocking read operation.
true if the value was read successfully; otherwise, false.